package Chapter5.Singlevellnheritance;

public class Books {
    int page_num;
    String author;
    String name;
    float price;
    Books()
    {
        page_num=400;
        name="Living Ideas";
        author="Stephen Hokings";
        price=100;
    }
    public void displayBookInfo(){
        System.out.println("Page_num is :"+page_num);
        System.out.println("Author is: "+author);
        System.out.println("Name is: "+name);
        System.out.println("Price is: "+price);
    }
}
